import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';

import { RefresherPage } from '../refresher/refresher';
import { ItemPage} from "../item/item";
import {UprefreshPage} from "../uprefresh/uprefresh";

@Component({
  selector: 'page-home',
  templateUrl: 'home.html'
})
export class HomePage {

  public RefresherPage=RefresherPage;
  public ItemPage = ItemPage;
  public UprefreshPage = UprefreshPage;
  public list:any;

  constructor(public navCtrl: NavController) {
      this.list = [{"label":'基础组件',"page":this.ItemPage},
          {"label":'下拉刷新',"page":this.RefresherPage},
          {"label":'上拉加载',"page":this.UprefreshPage}];
  }
 
  goPush(page){
    this.navCtrl.push(page);
  }
}
